﻿using System;

namespace Hxsoft.AppV1.Module
{
	/// <summary>
	/// 权限验证方法。
	/// </summary>
	/// <typeparam name="DataContext">数据容器的类型。</typeparam>
	/// <typeparam name="Entity">实体类型。</typeparam>
	/// <param name="dc">数据容器。</param>
	/// <param name="entity">操作的实体。</param>
	/// <param name="triggerException">是否引发例外。</param>
	/// <returns>布尔值表示是否验证成功。</returns>
	public delegate bool RightCheckMethod<DataContext, Entity>(DataContext dc, Entity entity, bool triggerException);
}